class Notifier < ActionMailer::Base  
  
  default_url_options[:host] = WEBAPP_CONFIG["host"]  
  def verification_instructions(user)
    subject       "Account activation instructions"  
    from          WEBAPP_CONFIG["emails"]["info_from"]  
    recipients    user.email  
    sent_on       Time.now  
    body          :verification_url => user_verification_url(user.perishable_token)  
  end
  
  def password_reset_instructions(user)  
    subject       "Password Reset Instructions"  
    from          WEBAPP_CONFIG["emails"]["info_from"]  
    recipients    user.email  
    sent_on       Time.now  
    body          :edit_password_reset_url => edit_password_reset_url(user.perishable_token)  
  end  
end